/*
 * MODULE NAME:    mgr_core.h
 * DESCRIPTION:    Host Manager Base Functionality
 * AUTHOR:         Martin Mellody
 * DATE:           10 March 2000
 *
 * SOURCE CONTROL: $Id: mgr_core.h,v 1.9 2009/08/25 06:04:50 jianguo Exp $
 *
 * LICENSE:
 *     This source code is copyright (c) 2000-2002 RDA Microelectronics.
 *     All rights reserved.
 *
 */

#ifndef __MGR_CORE_H
#define __MGR_CORE_H


#define MGR_CORE         1
#define MGR_INQUIRY         2

/* These are used in for paging devices for which we have no inquiry response */
#define HOST_PAGING_DEFAULT_PSRM        1 
#define HOST_PAGING_DEFAULT_PSPM        2 
#define HOST_PAGING_DEFAULT_PSM         0 
#define HOST_PAGING_DEFAULT_CLKOFFSET   0

t_api rdabt_mgr_setState(u_int32 addState, u_int32 removeState);

u_int8 *rdabt_mgr_get_local_feature(void);

#ifdef NO_SEC_CHECK
#define RDABT_MGR_CHECK_LOCAL_FEATURE_0     (0)
#define RDABT_MGR_CHECK_LOCAL_FEATURE_1     (1)
#define RDABT_MGR_CHECK_LOCAL_FEATURE_2     (2)
#define RDABT_MGR_CHECK_LOCAL_FEATURE_FF    (0xff)
#else
#define RDABT_MGR_CHECK_LOCAL_FEATURE_0     ((*(((u_int32*)(rdabt_mgr_get_local_feature()+8)))^0xdfbee3cc)>>0)
#define RDABT_MGR_CHECK_LOCAL_FEATURE_1     ((*(((u_int32*)(rdabt_mgr_get_local_feature()+8)))^0xdebee3cc)>>24)
#define RDABT_MGR_CHECK_LOCAL_FEATURE_2     ((*(((u_int32*)(rdabt_mgr_get_local_feature()+8)))^0xdfbee1cc)>>8)
#define RDABT_MGR_CHECK_LOCAL_FEATURE_FF    (*(rdabt_mgr_get_local_feature()+8)^0x33)
#endif

#endif /*__MGR_CORE_H*/

